<?php
$lang = isset($_GET['lang'])?$_GET['lang']:'en';
echo ($lang);
session_start();
$_SESSION['lang'] = $lang;
header("Location: index.php");
?>